package com.supor.aiot.common.entity;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2020, by het, Shenzhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述: 烤箱协议 <br>
 * 作者: lei <br>
 * 日期: 2021/7/16 <br>
 */
public class OvenData extends BaseDeviceData {
    /**
     * 0 关机状态|1 待机中|2 暂停中|3 预热中|4 烹饪中|5 烹饪完成|6 故障中|7-20 预留
     */
    public int machineStatus;
    /**
     * 1 纯蒸
     * 2 速蒸
     * 3 纯烤上加热
     * 4 纯烤下加热
     * 5 纯烤上下加热
     * 6 嫩烤
     * 7 空炸
     * 8 风干
     * 9 煲炖
     * 10 发酵
     * 11 保温
     * 12 解冻
     * 13 清洁
     * 14 烘干
     * 15-20 预留
     */
    public int workStatus;

    /**
     * 开始/暂停/取消烹饪键: 0 取消烹饪（设备回到待机状态）|1 开始烹饪|2 暂停烹饪|3-10 预留
     */
    public int onOffCancel;
    /**
     * 设置时间(分钟)
     */
    public int setTime;
    /**
     * 探针温度
     */
    public int probeTemp;
    /**
     * 上加热管状态: 0：关 1：开
     */
    public boolean upHeater;
    /**
     * 下加热管状态: 0：关 1：开
     */
    public boolean downHeater;
    /**
     * 蒸汽发生器400w: 0：关 1：开
     */
    public boolean steamHeater1;
    /**
     * 蒸汽发生器600w: 0：关 1：开
     */
    public boolean steamHeater2;
    /**
     * 水盒指示灯: 0 水盒指示灯关闭|1 水盒指示灯闪烁|2 水盒指示灯常亮|3-10 预留
     */
    public int waterBox;
    /**
     * 水盒微动开关
     */
    public boolean waterBoxOnoff;
    /**
     * 照明状态: 0：关闭  1：开启
     */
    public boolean lightState;
    /**
     * 风机状态: 0：关闭  1：开启
     */
    public boolean fanState;

    /*食谱下发及控制*/
    /*大数据统计分析*/

    /**
     * 腔体温度传感器开路或者短路
     */
    public boolean E01;
    /**
     * 热电偶异常
     */
    public boolean E02;
    /**
     * 腔体高温保护
     */
    public boolean E03;
    /**
     * 通讯异常
     */
    public boolean E04;
    /**
     * 腔体传感器失效保护
     */
    public boolean E05;
    /**
     * 门控开关
     */
    public boolean gateState;
    /**
     * WiFi通信故障
     */
    public boolean wifiWarning;

    @Override
    public String toString() {
        return "OvenData{" +
                "machineStatus=" + machineStatus +
                ", workStatus=" + workStatus +
                ", onOffCancel=" + onOffCancel +
                ", setTime=" + setTime +
                ", probeTemp=" + probeTemp +
                ", upHeater=" + upHeater +
                ", downHeater=" + downHeater +
                ", steamHeater1=" + steamHeater1 +
                ", steamHeater2=" + steamHeater2 +
                ", waterBox=" + waterBox +
                ", waterBoxOnoff=" + waterBoxOnoff +
                ", lightState=" + lightState +
                ", fanState=" + fanState +
                ", E01=" + E01 +
                ", E02=" + E02 +
                ", E03=" + E03 +
                ", E04=" + E04 +
                ", E05=" + E05 +
                ", gateState=" + gateState +
                ", wifiWarning=" + wifiWarning +
                '}';
    }
}
